import { Dictionary } from "../Common/Dictionary";
import { IGlobalConfig } from "../Interfaces/IIOC";
/**
 * 全局静态配置实现
 *
 */
export default class GlobalConfig implements IGlobalConfig {
  private list: Dictionary<string, any>;
  constructor() {
    this.list = new Dictionary();
  }
  getOption<T>(key: string): T {
    return this.list.get(key);
  }
  setOption(key: string, value: any) {
    this.list.set(key, value);
  }
}
